package com.ynkbny.web.controller;

import com.ynkbny.base.PageResult;
import com.ynkbny.domain.mongo.SbLog;
import com.ynkbny.domain.mongo.SbLogQueryVO;
import com.ynkbny.service.SbLogService;
import com.ynkbny.util.Res;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 上报日志-控制层
 *
 * @author : juzipi123
 * @date : 2023-7-20
 */
@Api(tags = "上报日志")
@RestController
@RequestMapping("/sbLog")
public class SbLogController {

    @Resource
    private SbLogService service;

    @PostMapping("/paginQuery")
    @ApiOperation("根据条件分页 查询")
    public Res<PageResult<SbLog>> paginQuery(SbLogQueryVO sbLogQueryVO) {
        return Res.ok(service.paginQuery(sbLogQueryVO));
    }

}
